<?php
namespace app\common\model;
use think\Model;

class AccountList extends Model
{
    protected $autoWriteTimestamp = true;
    
    public function rent()
    {
        return $this->hasOne('Rent','contract_no','contract_no');
    }
    
    public function brand()
    {
        return $this->hasOne('Brand','id','brand_id')->field('id,name');
    }
}